package cn.seifly.demo.biz.system.service.vo;

import cn.seifly.demo.PageQueryVO;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;
import cn.seifly.demo.biz.system.dao.entity.SystemConfigDO;
/**
 * 
 * @ClassName: SystemConfigVO
 * @Description: 配置表
 * @author: sxf
 * @date: 2025年11月09日 上午10:29:03
 */
@Data
@Schema(description = "SystemConfigVO")
public class SystemConfigVO extends PageQueryVO {

    @Schema(title ="配置id")
    private Integer id;

    @Schema(title ="字段名称")
    private String menuName;

    @Schema(title ="类型(文本框,单选按钮...)")
    private String type;

    @Schema(title ="表单类型")
    private String inputType;

    @Schema(title ="配置分类id")
    private Integer configTabId;

    @Schema(title ="规则 单选框和多选框")
    private String parameter;

    @Schema(title ="上传文件格式1单图2多图3文件")
    private Integer uploadType;

    @Schema(title ="规则")
    private String required;

    @Schema(title ="多行文本框的宽度")
    private Integer width;

    @Schema(title ="多行文框的高度")
    private Integer high;

    @Schema(title ="默认值")
    private String value;

    @Schema(title ="配置名称")
    private String info;

    @Schema(title ="配置简介")
    private String desc;

    @Schema(title ="排序")
    private Integer sort;

    @Schema(title ="是否隐藏")
    private Integer status;

    @Schema(title ="配置层级0顶级1次级")
    private Integer level;

    @Schema(title ="关联上级配置id")
    private Integer linkId;

    @Schema(title ="关联上级配置的值")
    private Integer linkValue;

    public SystemConfigDO getDO() {
        SystemConfigDO systemConfigDO = new SystemConfigDO();
        systemConfigDO.setId(this.getId());
        systemConfigDO.setMenuName(this.getMenuName());
        systemConfigDO.setType(this.getType());
        systemConfigDO.setInputType(this.getInputType());
        systemConfigDO.setConfigTabId(this.getConfigTabId());
        systemConfigDO.setParameter(this.getParameter());
        systemConfigDO.setUploadType(this.getUploadType());
        systemConfigDO.setRequired(this.getRequired());
        systemConfigDO.setWidth(this.getWidth());
        systemConfigDO.setHigh(this.getHigh());
        //systemConfigDO.setValue(this.getValue());
        systemConfigDO.setInfo(this.getInfo());
//        systemConfigDO.setDesc(this.getDesc());
//        systemConfigDO.setSort(this.getSort());
//        systemConfigDO.setStatus(this.getStatus());
//        systemConfigDO.setLevel(this.getLevel());
        systemConfigDO.setLinkId(this.getLinkId());
        systemConfigDO.setLinkValue(this.getLinkValue());
        return systemConfigDO;
    }
}